package com.topisv.tms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
@Entity
@Table(name = "edi_order_item")
public class EdiOrderItem extends IdEntity implements Cloneable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String oid;//淘宝平台OID
	private String oidStatus;//OID状态 normal(正常),cancel(取消)
	private String spec;//规格代码
	
	private String weight;//重量
	private String originCountry;//原产国
	
	public String getOriginCountry() {
		return originCountry;
	}
	public void setOriginCountry(String originCountry) {
		this.originCountry = originCountry;
	}
	@Transient
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	 /**
     * 克隆方法
     */
    public Object clone()
    {
	    Object o=null;
	    try{
	       o=super.clone();
	    }
	    catch(CloneNotSupportedException e){
	    }
	    return o;
    }
    
    private EdiGoodsSku ediGoodsSku ; 

    @Transient
    public EdiGoodsSku getEdiGoodsSku() {
		return ediGoodsSku;
	}

	public void setEdiGoodsSku(EdiGoodsSku ediGoodsSku) {
		this.ediGoodsSku = ediGoodsSku;
	}
	
	public String getSpec() {
		return spec;
	}


	public void setSpec(String spec) {
		this.spec = spec;
	}
	
	private String midId;//平台SKu

	public String getMidId() {
		return midId;
	}

	public void setMidId(String midId) {
		this.midId = midId;
	}

	private String waybillNo;//能容运单号
	@Column(name="waybill_no")
	public String getWaybillNo() {
		return waybillNo;
	}

	public void setWaybillNo(String waybillNo) {
		this.waybillNo = waybillNo;
	}

	private Date crtime;//数据创建时间
	
	public Date getCrtime() {
		return crtime;
	}

	public void setCrtime(Date crtime) {
		this.crtime = crtime;
	}

	private String customerCode;//客户编码
	
	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	private String des;// varchar(100) DEFAULT NULL COMMENT
						// 'SKU描述，目前ERP将商品规格全部存在这里。',
	
	private String storeId;// 仓库Id

	@Column(name="store_id")
	public String getStoreId() {
		return storeId;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}
	@Column(name="store_code")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	
	private String articleNumber;//货品编号

	public String getArticleNumber() {
		return articleNumber;
	}

	public void setArticleNumber(String articleNumber) {
		this.articleNumber = articleNumber;
	}

	private String storeCode;// 库位编码
	

	private String ordeno ;//varchar(64) NOT NULL COMMENT '商家订单号',
	
	private String  sku ;//varchar(64) NOT NULL COMMENT '商家SKU ID',
	private Integer  qty ;//int(11) NOT NULL,
	private Double  pri ;//decimal(18,4) NOT NULL COMMENT '单价',
	private Double  amo;// decimal(18,4) NOT NULL COMMENT '实际金额',
	private Double  pro;// decimal(18,4) DEFAULT NULL,
	private Double  pay ;//decimal(18,4) NOT NULL COMMENT '应付金额',
	private Double  dis ;//decimal(18,4) NOT NULL COMMENT '折扣',
	private String  nam ;//varchar(200) DEFAULT NULL COMMENT '商品名称（针对组合商品）',
	private boolean  com ;//tinyint(4) NOT NULL COMMENT '是否为组合商品',
	private boolean  pre;// tinyint(4) NOT NULL COMMENT '是否预售 （T=预售）',
	private String tdSkuId;// bigint(20) DEFAULT NULL COMMENT '备用，淘宝SKU ID',
	private String col;//商品的颜色
	private String siz;//商品的尺码
	private String vol;//varchar(50) DEFAULT NULL COMMENT '体积',
	private String sellFlg;//(1正常商品0赠品)
	private String skulist ; //组合商品包含的sku列表
	private String lineNo; //行号
	private String sourceOrderCode;//交易平台订单
	private String subSourceOrderCode;//交易平台子订单编码
	private String extCode;//交易平台商品编码
	
	/**
	 * 币制
	 */
	private String currency;
	
	/**
	 * 单位
	 */
	private String unit;
	
	public String getSkulist() {
		return skulist;
	}
	public void setSkulist(String skulist) {
		this.skulist = skulist;
	}
	
	public String getOrdeno() {
		return ordeno;
	}
	public void setOrdeno(String ordeno) {
		this.ordeno = ordeno;
	}
	
	public String getSourceOrderCode() {
		return sourceOrderCode;
	}

	public void setSourceOrderCode(String sourceOrderCode) {
		this.sourceOrderCode = sourceOrderCode;
	}

	public String getSubSourceOrderCode() {
		return subSourceOrderCode;
	}

	public void setSubSourceOrderCode(String subSourceOrderCode) {
		this.subSourceOrderCode = subSourceOrderCode;
	}

	public String getExtCode() {
		return extCode;
	}

	public void setExtCode(String extCode) {
		this.extCode = extCode;
	}

	@Column(name="sku_id")
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	public Integer getQty() {
		return qty;
	}
	public void setQty(Integer qty) {
		this.qty = qty;
	}
	public Double getPri() {
		return pri;
	}
	public void setPri(Double pri) {
		this.pri = pri;
	}
	public Double getAmo() {
		return amo;
	}
	public void setAmo(Double amo) {
		this.amo = amo;
	}
	public Double getPro() {
		return pro;
	}
	public void setPro(Double pro) {
		this.pro = pro;
	}
	public Double getPay() {
		return pay;
	}
	public void setPay(Double pay) {
		this.pay = pay;
	}
	public Double getDis() {
		return dis;
	}
	public void setDis(Double dis) {
		this.dis = dis;
	}
	public String getNam() {
		return nam;
	}
	public void setNam(String nam) {
		this.nam = nam;
	}
	public boolean getCom() {
		return com;
	}
	public void setCom(boolean com) {
		this.com = com;
	}
	public boolean getPre() {
		return pre;
	}
	@Column(name="tb_sku_id")
	public String getTdSkuId() {
		return tdSkuId;
	}

	public void setTdSkuId(String tdSkuId) {
		this.tdSkuId = tdSkuId;
	}

	public void setPre(boolean pre) {
		this.pre = pre;
	}
	@Transient
	public String getCol() {
		return col;
	}
	public void setCol(String col) {
		this.col = col;
	}
	@Transient
	public String getSiz() {
		return siz;
	}
	public void setSiz(String siz) {
		this.siz = siz;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getOidStatus() {
		return oidStatus;
	}

	public void setOidStatus(String oidStatus) {
		this.oidStatus = oidStatus;
	}
	public String getSellFlg() {
		return sellFlg;
	}

	public void setSellFlg(String sellFlg) {
		this.sellFlg = sellFlg;
	}

	public String getVol() {
		return vol;
	}

	public void setVol(String vol) {
		this.vol = vol;
	}

	public String getLineNo() {
		return lineNo;
	}

	public void setLineNo(String lineNo) {
		this.lineNo = lineNo;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	
}
